/*
 * OrderBO.java
 *
 * Created on April 2, 2007, 8:58 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.jjenkins.data;

/**
 * This class has the set and get methods necessary for the attributes
 * @author Administrator
 */
public class OrderBO extends BusinessObject{
    private String vendor_id;
    private String product_id;
    private int quantity;
    private int unit_price;
    
    /** Creates a new instance of OrderBO */
    public OrderBO() {
    }

    /**
     * This method returns the vendor
     * @return vendor
     */
    public String getVendor_id() {
        return vendor_id;
    }

    /**
     * This method sets the vendor
     * @param vendor_id 
     */
    public void setVendor_id(String vendor_id) {
        this.vendor_id = vendor_id;
        setDirty(true);
    }

    /**
     * This method returns the productID
     * @return Product ID
     */
    public String getProduct_id() {
        return product_id;
    }

    /**
     * This method sets the product
     * @param product_id 
     */
    public void setProduct_id(String product_id) {
        this.product_id = product_id;
        setDirty(true);
    }

    /**
     * This method return the quantity
     * @return quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * This method sets the quantity
     * @param quantity 
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
        setDirty(true);
    }

    /**
     * This method returns the unit price
     * @return unit price
     */
    public int getUnit_price() {
        return unit_price;
    }

    /**
     * This method sets the unit price
     * @param unit_price 
     */
    public void setUnit_price(int unit_price) {
        this.unit_price = unit_price;
        setDirty(true);
    }
    
}
